package com.jiayinlending.jiayindai.activity.mine;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.jiayinlending.jiayindai.R;
import com.jiayinlending.jiayindai.activity.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PerfectInformationActivity extends BaseActivity {

    @Bind(R.id.tv_identity)
    TextView tvIdentity;
    @Bind(R.id.tv_mobile)
    TextView tvMobile;
    @Bind(R.id.tv_name_authentication)
    TextView tvNameAuthentication;
    @Bind(R.id.tv_job)
    TextView tvJob;
    @Bind(R.id.tv_public)
    TextView tvPublic;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        getToolbarTitle().setText("完善个人信息");
        getSubTitle().setText("");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_perfect_information;
    }

    @OnClick({R.id.tv_identity, R.id.tv_mobile, R.id.tv_name_authentication, R.id.tv_public,R.id.tv_job})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_identity:
                startActivity(new Intent(PerfectInformationActivity.this, IdentityActivity.class));
                break;
            case R.id.tv_mobile:
                startActivity(new Intent(PerfectInformationActivity.this, MobileAuthenticationActivity.class));
                break;
            case R.id.tv_name_authentication:
                startActivity(new Intent(PerfectInformationActivity.this, NameAuthenticationActivity.class));
                break;
            case R.id.tv_public:
                startActivity(new Intent(PerfectInformationActivity.this, PublicAccumulationFundsActivity.class));
                break;
            case R.id.tv_job:
                startActivity(new Intent(PerfectInformationActivity.this, JobInformationActivity.class));
                break;
        }
    }

}
